import Vue from 'vue'
import Router from 'vue-router'
import GoodsList from './../views/GoodsList'
import Cart from './../views/Cart'
import Address from './../views/Address'
import OrderConfitm from './../views/OrderConfirm'
import OrderSucess from './../views/OrderSuccess'
ue.use(Router);

export default new Router({
  mode:'history',
  routes: [
    {
      path: '/',
      name: 'GoodsList',
      component: GoodsList
    },
    {
      path:'/cart',
      name:'Cart',
      component:Cart
    },
    {
      path:'/address',
      name:'Address',
      component:Address
    },
    {
      path:'/orderConfirm',
      name:'OrderConfitm',
      component:OrderConfitm
    },
    {
      path:'/orderSucess',
      name:'OrderSucess',
      component:OrderSucess
    }
  ]
})
